# from django import forms
# from captcha.fields import CaptchaField
#
#
# #forget.html中，用于验证邮箱格式和验证码
# class ForgetForm(forms.Form):
#     email=forms.EmailField(required=True)
#     captcha=CaptchaField(error_messages={'invalid':'验证码错误'})
#
# #reset.html中，用于验证新设的密码长度是否达标
# class ResetForm(forms.Form):
#     newpwd1=forms.CharField(required=True,min_length=6,error_messages={'required': '密码不能为空.', 'min_length': "至少6位"})
#     newpwd2 = forms.CharField(required=True, min_length=6, error_messages={'required': '密码不能为空.', 'min_length': "至少6位"})